home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.3 (Developer)…68k, x86, SPARC, PA-RISC] / NeXTSTEP 3.3 Dev Intel.iso / NextDeveloper / Headers / appkit / Menu.h < prev    next >
Text File  |  1992-09-16  |  2KB  |  82 lines

  1. /*
  2.     Menu.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, 1989, 1990, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import "Panel.h"
  8. #import <objc/zone.h>
  9.  
  10. @interface Menu : Panel
  11. {
  12.     id                  supermenu;
  13.     id                  matrix;
  14.     id                  attachedMenu;
  15.     NXPoint             lastLocation;
  16.     id                  reserved;
  17.     struct _menuFlags {
  18. #ifdef __BIG_ENDIAN__
  19.     unsigned int        sizeFitted:1;
  20.     unsigned int        autoupdate:1;
  21.     unsigned int        attached:1;
  22.     unsigned int        tornOff:1;
  23.     unsigned int        wasAttached:1;
  24.     unsigned int        wasTornOff:1;
  25.     unsigned int        _RESERVED:6;
  26.     unsigned int        _templateType:2;
  27.     unsigned int        _isServicesMenu:1;
  28.     unsigned int        _changeTitle:1;
  29. #else
  30.     unsigned int        _changeTitle:1;
  31.     unsigned int        _isServicesMenu:1;
  32.     unsigned int        _templateType:2;
  33.     unsigned int        _RESERVED:6;
  34.     unsigned int        wasTornOff:1;
  35.     unsigned int        wasAttached:1;
  36.     unsigned int        tornOff:1;
  37.     unsigned int        attached:1;
  38.     unsigned int        autoupdate:1;
  39.     unsigned int        sizeFitted:1;
  40. #endif
  41.     }                   menuFlags;
  42. }
  43.  
  44. + setMenuZone:(NXZone *)aZone;
  45. + (NXZone *)menuZone;
  46.  
  47. - init;
  48. - initTitle:(const char *)aTitle;
  49.  
  50. - addItem:(const char *)aString action:(SEL)aSelector keyEquivalent:(unsigned short)charCode;
  51. - setSubmenu:aMenu forItem:aCell;
  52. - itemList;
  53. - setItemList:aMatrix;
  54. - display;
  55. - sizeToFit;
  56. - moveTopLeftTo:(NXCoord)x :(NXCoord)y;
  57. - windowMoved:(NXEvent *)theEvent;
  58. - close;
  59. - update;
  60. - setAutoupdate:(BOOL)flag;
  61. - findCellWithTag:(int)aTag;
  62. - getLocation:(NXPoint *)theLocation forSubmenu:aSubmenu;
  63. - mouseDown:(NXEvent *)theEvent;
  64. - rightMouseDown:(NXEvent *)theEvent;
  65. - awake;
  66. - write:(NXTypedStream *)stream;
  67. - read:(NXTypedStream *)stream;
  68.  
  69. /* 
  70.  * The following new... methods are now obsolete.  They remain in this  
  71.  * interface file for backward compatibility only.  Use Object's alloc method  
  72.  * and the init... methods defined in this class instead.
  73.  */
  74. + new;
  75. + newTitle:(const char *)aTitle;
  76.  
  77. @end
  78.  
  79. @interface Menu(SubmenuDummyAction)
  80. - submenuAction:sender;
  81. @end
  82.